package com.huluobo.h3kotlinproject.mine

import androidx.lifecycle.MutableLiveData
import com.huluobo.h3kotlinproject.base.BaseViewModel
import com.huluobo.h3kotlinproject.db.entity.UserInfo

/**
 *  Created by LC on 2023/11/2.
 */
class MineViewModel : BaseViewModel() {
    private val repo = MineRepo()
    val successUserInfo = MutableLiveData<UserInfo>()

    fun queryUserInfo(userId: Int) {
        successUserInfo.value = repo.queryUserInfo(userId)
    }
}